<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="body">
<div class="header" > <a href="{$appshop}?m=index&a=product"  class="left-btn"><span class="iconfont icon-back"></span></a>
    <div class="title">优惠券管理</div>
    <div class="right-btn" id="showSearch"><a href="{$appshop}?m=coupon&a=add"><span class="iconfont icon-write"></span></a></div>
  </div>
  
  
  
 <div class="plist"> 
 {foreach item=c from=$data}
 
 	<div class="item">
    	<div class="g-sd1"><img src="{$c.imgurl|images_site}" onerror="err_imgurl(this)"></div>
        <div class="g-mn1">
        	<div class="g-mn1c">
            	<div class="title">{$c.title} <span class="right pointer"> {if $c.status eq 1}
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="{$shopadmin}?m=coupon&a=status&id={$c.id}&status=1" url="{$shopadmin}?m=coupon&a=status&id={$c.id}&status=0" />
           {else}
           <img src="/static/images/no.gif"  class="ajax_yes" url="{$shopadmin}?m=coupon&a=status&id={$c.id}&status=1" rurl="{$shopadmin}?m=coupon&a=status&id={$c.id}&status=0" />  
          {/if}</span></div>
                <div class="row">
                	<span>价格：￥{$c.money}</span>
                    <span>最低消费：￥{$c.lower_money}</span>
                    
                </div>
                <div class="row">截止时间：{$c.end_time|date:Y-m-d}</div>
                <div class="row">
                	<span>
                    	数量：{$c.amount}
                    </span>
                    <span>
                    	领取数：{$c.get_num}
                    </span>
                    <span>
                    	使用数：{$c.use_num}
                    </span>
                    
                </div>
                
                <div class="tool">
                	<a href="{$shopadmin}?m=coupon&a=add&id={$c.id}">编辑</a> <a href="/index.php?m=coupon&a=show&id={$c.id}" target="_blank">查看</a> <a href="javascript:;" class="delete" url="{$shopadmin}?m=coupon&a=delete&id={$c.id}">删除</a>
                </div>
            </div>
        </div>
    </div>
   
 
   {/foreach}
 
<div>{$pagelist}</div>
</div>
</div>
{include file="footer.html"}